package com.ruoyi.query.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.DynamicAnnotation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;

/**
 * <p>
 * 动态查询详细
 * </p>
 *
 * @author XiaShiLong
 * @since 2021-03-25
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("dl_query_dtl")
@ApiModel(value = "动态查询详细", description = "动态查询详细")
public class QueryDtl implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @DynamicAnnotation(" 主键")
    @ApiModelProperty(value = " 主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 父级id
     */
    @DynamicAnnotation("父级id")
    @ApiModelProperty(value = "父级id")
    private Long queryId;

    /**
     * 查询字段名
     */
    @DynamicAnnotation("查询字段名")
    @ApiModelProperty(value = "查询字段名")
    private String columnName;

    @DynamicAnnotation("查询列名")
    @ApiModelProperty(value = "查询列名")
    private String tableColumnName;

    /**
     * 查询字段所在表名
     */
    @DynamicAnnotation("查询字段所在表名")
    @ApiModelProperty(value = "查询字段所在表名")
    private String tableName;

    /**
     * 查询字段中文名
     */
    @DynamicAnnotation("查询字段中文名")
    @ApiModelProperty(value = "查询字段中文名")
    private String columnNameCh;

    /**
     * 字段类型
     */
    @DynamicAnnotation("字段类型")
    @ApiModelProperty(value = "字段类型")
    private String columnType;

    /**
     * 查询类型
     */
    @DynamicAnnotation("查询类型")
    @ApiModelProperty(value = "查询类型")
    private Integer dictQueryType;

    /**
     * 值1
     */
    @DynamicAnnotation("值1")
    @ApiModelProperty(value = "值1")
    private String value1;

    /**
     * 值2
     */
    @DynamicAnnotation("值2")
    @ApiModelProperty(value = "值2")
    private String value2;

    /**
     * 排序
     */
    @DynamicAnnotation("排序")
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
     * hovId
     */
    @DynamicAnnotation("hovId")
    @ApiModelProperty(value = "hovId")
    private Long hovId;


}
